package com.lening.collect.controller;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.lening.collect.dto.CollectDTO;
import com.lening.collect.pojo.Collect;
import com.lening.collect.service.ICollectService;
import com.lening.common.base.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author 杨军
 * @since 2024-05-31
 */
@RestController
@RequestMapping("/collect")
@JsonFormat(locale= "zh", timezone= "GMT+8", pattern= "yyyy-MM-dd")
public class CollectController extends BaseController<Collect, CollectDTO, ICollectService> {
    @Autowired
    private ICollectService service;

//  @GetMapping("/get")
//
//  public Result<Page<CollectVo>> get(CollectDTO collectDTO){
//      return Result.ok(service.get(collectDTO));
//  }

//    @GetMapping("hello")
//    public String hello() {
//        CollectDTO collectDTO = new CollectDTO();
//        collectDTO.getRoomNumber()
//        String string = Request.syncGet("community-management/house/list", String.class);
//        String string="1";
//        return "hello"+string;
//    }

}
